package com.neutech.maplestory.entity;

import com.neutech.maplestory.client.MapleStoryClient;
import com.neutech.maplestory.util.ImageUtil;
import com.sun.istack.internal.localization.NullLocalizable;

import java.awt.*;

public class Ground extends AbstractMapleStoryObject{
    public  Image img;
    public Ground(){

    }
    public Ground(MapleStoryClient msc,int  x, int y,int width,int height){
        this.msc = msc ;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
       /* this.img = ImageUtil.getImage("");
        this.width=img.getWidth(null);
        this.height=img.getHeight(null);*/

    }
    public Ground(MapleStoryClient msc,int  x, int y,String key){
        this.msc = msc ;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
        this.img = ImageUtil.getImage("background");


        this.width=img.getWidth(null);
        this.height=img.getHeight(null);

    }

    @Override
    public void draw(Graphics g) {
        g.drawRect(x,y,width,height);
        g.drawImage(this.img,0,0,null);


    }
}
